package com.smh;

public class Test {
    public static void main(String[] args) {

        Cat c = new Cat(12,"黑色");
        Dog d = new Dog(12,"白色");

        Person preson = new Person(" 张三",23);

        preson.keepPet(c,"鱼");
        preson.keepPet(d,"骨头");

    }
}
